package com.lyf.service;

import com.lyf.pojo.Dept;
import com.lyf.utils.PageModel;

import java.util.List;

public interface DeptService {

    //新增
    void add(Dept dept);

    //删除
    void delete(Integer id);

    //修改
    void update(Dept dept);

    //查询全部
    List<Dept> selectAll();

    //根据id
    Dept selectById(Integer id);

    //分页条件查询
    List<Dept> queryDept(Dept dept, PageModel model);

    //分页条件总记录数查询
    int getTotalDeptCount(Dept dept);
}
